//
//  DianPCellFoot.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/3/4.
//  Copyright © 2016年 game. All rights reserved.
//

#import "DianPCellFoot.h"

@interface DianPCellFoot ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *btnWith;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *btnHight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *linHight;

@end

@implementation DianPCellFoot

-(void)awakeFromNib{

    self.backgroundColor = [UIColor whiteColor];
//    self.button.layer.borderColor = linColor.CGColor;
//    self.button.layer.borderWidth = 0.5;
    
    
    self.button.backgroundColor = [UIColor whiteColor];
    self.button.titleLabel.font = font(SCREEN_WIDTH*0.04);
    
    self.btnWith.constant = SCREEN_WIDTH;
    self.linHight.constant = 0.5;
}

-(void)setCommentCount:(NSInteger)commentCount{

    _commentCount = commentCount;
    
    
    NSString *title;
    
    if (commentCount==0) {
        title = @"发表第1条评论";
    }else if (_commentCount<=3){
    
        title = @"评论就这么多了";
    }else{
        title = @"点击查看更多评论";
    
    }
    [self.button setTitle:title forState:UIControlStateNormal];

}

@end
